/**
 *
 * @author lty
 */
public class Discount20PercentOff extends PromotionDecorator {

    public Discount20PercentOff(Product product) {
        super(product);
    }

    @Override
    public double getDiscountedPrice() {
        // 计算20%折扣的价格
        return product.getPrice() * 0.8;
    }
}
